import React from 'react';
import IconMap from '@/components/IconMap';
import { loginRules } from '@/utils/rules';
export default function AcountLogin({ FormItem, Input }) {
    return (
        <>
            <FormItem hasFeedback name="accountName" rules={loginRules.userRule} key="accountName">
                <Input
                    placeholder="请输入用户名"
                    prefix={IconMap.userIcon}></Input>
            </FormItem>
            <FormItem hasFeedback name="password" rules={loginRules.passwordRule} key="password">
                <Input
                    type="password"
                    placeholder="请输入密码"
                    prefix={IconMap.passwordIcon}></Input>
            </FormItem>
        </>
    )
}
